* {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


.fl {
    float: left;
}

.fr {
    float: right;
}

.w {
    width: 1200px;
    margin: 0 auto;
}

input,
button {
    border: 0;
    outline: none;
}

body {
    background-color: #f3f5f7;
}

.header {
    height: 42px;
    /* background-color: aqua; */
    margin: 30px auto;
}

.logo {
    width: 195px;
    height: 42px;
    /* background-color: pink; */
}

.nav {
    margin-left: 59px;
}

.nav li {
    float: left;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
    margin: 0 15px;
}

.nav ul li a:hover {
    border-bottom: 2px solid  red;
    color: #00a4ff;
}

.search {
    width: 412px;
    height: 42px;
    /* background-color: blue; */
    margin-left: 70px;
    font-size: 0;
}

.search input {
    width: 346px;
    height: 40px;
    border: solid 1px #00a4ff;
    border-right: 0;
    padding-left: 14px;
    font-size: 14px;
    color: #bfbfbf;
    vertical-align: top;
}

.search button {
    width: 50px;
    height: 42px;
    background: url(./images/btn.png);
    /* background-color: pink; */
}

.user {
    float: right;
    line-height: 42px;
    font-size: 14px;
    color: #666;
    margin-right: 30px;
}

.user img {
    vertical-align: middle;
}

.banner {
    height: 420px;
    background-color: #1c036c;
}

.banner .w {
    height: 420px;
    background: url('./images/banner2.png') no-repeat top center;
}

.subNav {
    width: 190px;
    height: 420px;
    background: rgba(0, 0, 0, .3);
}

.subNav ul li a {
    font-size: 14px;
    color: #ffffff;
}

.subNav ul li {
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
}

.subNav ul li a span {
    float: right;
}

.subNav ul li a:hover {
    color: #00b4ff;
}

.banner .course {
    width: 228px;
    height: 300px;
    background-color: #fff;
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    line-height: 48px;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bd .more {
    display: block;
    height: 41px;
    border: solid 1px #00a4ff;
    margin-top: 5px;
    line-height: 41px;
    text-align: center;
    font-size: 16px;
    color: #00a4ff;
    font-weight: 700;
}

.goods {
    height: 60px;
    line-height: 60px;
    background-color: #fff;
    box-shadow: 0px 2px 3px 0px rgba(118, 118, 118, 0.2);
}

.goods h2 {
    margin: 0 30px;
    font-size: 16px;
    color: #00a4ff;
}

/*.goods ul {
    margin-left: 30px;
}
*/
.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}

.goods>a {
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}

.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
}

.box-hd h3 {
    font-size: 20px;
    color: #494949;
}

.box-hd a {
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

/* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行了 */
/* .box-bd ul {
    width: 1225px;
} */
.box-bd ul li:nth-child(5n) {
    margin-right: 0;
}

/* .box-bd ul li:nth-child(n+6) {
    margin-bottom: 0;
} */
.box-bd ul li:nth-last-child(-n+5) {
    margin-bottom: 0;
}

.box-bd ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;

}

.box-bd ul li>img {
    width: 100%;
}

.box-bd ul li>span {
    position: absolute;
    top: 4px;
    right: -4px;
}


.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    height: 42px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}

.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;
}

.box-bd .info span {
    color: #ff7c2d;
}


/* 编程入门 */
.box .box-hd .box-nav {
    margin-left: 346px;
}

.box .box-hd .box-nav li {
    float: left;
    font-size: 16px;
}

.box .box-hd .box-nav a {
    margin-right: 68px;
    color: #868686;
}

.box .box-bd .box-pic {
    width: 228px;
    height: 392px;
}

.box .box-bd .box-pic img {
    width: 100%;
}

.box .box-container {
    width: 957px;
    height: 392px;
}

.box .box-container .box-banner {
    width: 957px;
    height: 100px;
}

.box .box-container .box-banner img {
    width: 100%;
}

.box .box-container .box-list {
    margin-top: 22px;
    width: 972px;
    height: 270px;
}

/* footer 模块 */
.footer {
    height: 415px;
    overflow: hidden;
    margin-top: 40px;
    background-color: #fff;
}

.footer .w {
    padding-top: 35px;
}

.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}

.copyright .app {
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    color: #00a4ff;
    font-size: 16px;
}

.links dl {
    float: left;
    margin-left: 100px;
}

.links dl dt {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.links dl dd a {
    color: #333;
    font-size: 12px;
}